/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mwt.xml.xdbforms.xformlayer.transactions.impl;
import mwt.xml.xdbforms.xformlayer.transactions.XFormTransaction;
import mwt.xml.xdbforms.xformlayer.transactions.XFormTransactionFactory;

/**
 * Progetto Master Web Technology
 * @author Gianfranco Murador, Cristian Castiglia, Matteo Ferri
 *
 * Implementazione della XFormTransactionFactory che utilizza
 * il data source per le connessioni al DB
 *
 * La factory necessità si essere instanziata nella classe
 * ContextInitializer
 *
 *
 *
 */
public class XFormTransactionFactoryDS extends XFormTransactionFactory {

    public XFormTransactionFactoryDS() {

    }

    @Override
    public XFormTransaction newXFormInsertTransaction(String database) {
        return new XFormInsert(database);
    }

    @Override
    public XFormTransaction newXFormUpdateTransaction(String database) {
        return new XFormUpdate(database);
    }
}
